package com.hice.demo.sbdbra.service.impl;

/**
 * @author hyson
 * @create 2017-02-17 11:35
 */
import com.hice.demo.sbdbra.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;

@Component
@Service(version = "1.0.0")
public class HelloServiceImpl implements HelloService {
    @Autowired
    StringRedisTemplate stringRedisTemplate;

    @Override
    public void sayHello(String str) {
        System.out.println("hello dubbo-" + str);
        System.out.println("redis:" + stringRedisTemplate.opsForValue().get("hice"));
    }
}
